<%--
  Created by IntelliJ IDEA.
  User: fujia
  Date: 2016/5/24
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<!-- Start of Header -->
<div class="header-wrapper">
    <header>
        <div class="container">

            <div class="logo-container">
                <!-- Website Logo -->
                <a href="index.action" title="Knowledge Base Theme">
                    <img src="/resources/catalog/images/logo.png" alt="Knowledge Base Theme">
                </a>
                <span class="tag-line">高级主题问答论坛</span>
            </div>

            <!-- Start of Main Navigation -->
            <nav class="main-nav">
                <div class="menu-top-menu-container">
                    <ul id="menu-top-menu" class="clearfix">

                        <s:if test="#session.username != '' && #session.userId != null">
                            <li><b><s:property value="#session.username" /></b></li>
                        </s:if>
                        <s:else>
                            <li>
                                <a href="login.action">登录</a>
                                <ul class="sub-menu">
                                    <li><a href="register.action">注册</a></li>
                                </ul>
                            </li>
                        </s:else>
                        <li class="current-menu-item"><a href="index.action">首页</a></li>
                        <li><a href="block.action">论坛版块</a></li>
                        <li><a href="faq.action">FAQs</a></li>
                        <s:if test="#session.username != '' && #session.userId != null">
                            <li>
                                <a href="#">更多</a>
                                <ul class="sub-menu">
                                    <li><a href="publish.action">发表文章</a></li>
                                    <li><a href="/personal/main.action">个人中心</a></li>
                                    <li><a href="quit.action">退出登录</a></li>
                                </ul>
                            </li>
                        </s:if>
                        <li><a href="contact.action">联系我们</a></li>
                    </ul>
                </div>
            </nav>
            <!-- End of Main Navigation -->

        </div>
    </header>
</div>
<!-- End of Header -->

<!-- Start of Search Wrapper -->
<div class="search-area-wrapper">
    <div class="search-area container">
        <h3 class="search-header">你有疑问吗？</h3>
        <p class="search-tag-line">如果你有任何问题，你可以在下面寻找答案！</p>

        <form id="search-form" class="search-form clearfix" method="get" action="#" autocomplete="off">
            <input class="search-term required" type="text" id="s" name="s" placeholder="键入您的搜索关键词" title="* 请输入搜索项！" />
            <input class="search-btn" type="submit" value="知道一下" />
            <div id="search-error-container"></div>
        </form>
    </div>
</div>
<!-- End of Search Wrapper -->
